<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>yLib: yLib::yShell Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">yLib
   &#160;<span id="projectnumber">V0.0.9 beta</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classyLib_1_1yShell.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classyLib_1_1yShell-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">yLib::yShell Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class can run our cmd in linux(it is based on popen/pclose).  
 <a href="classyLib_1_1yShell.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="yshell_8hpp_source.html">yshell.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for yLib::yShell:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classyLib_1_1yShell.png" usemap="#yLib::yShell_map" alt=""/>
  <map id="yLib::yShell_map" name="yLib::yShell_map">
<area href="classyLib_1_1yObject.html" title="This is base-class of the all object in yLib." alt="yLib::yObject" shape="rect" coords="0,0,86,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3a8f3cbfa59d627e56875e15fa0fcf96"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a3a8f3cbfa59d627e56875e15fa0fcf96">yShell</a> ()</td></tr>
<tr class="memdesc:a3a8f3cbfa59d627e56875e15fa0fcf96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="classyLib_1_1yShell.html#a3a8f3cbfa59d627e56875e15fa0fcf96">More...</a><br /></td></tr>
<tr class="separator:a3a8f3cbfa59d627e56875e15fa0fcf96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65da0ea5c7b9662ec33328571f2a3967"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a65da0ea5c7b9662ec33328571f2a3967">~yShell</a> ()</td></tr>
<tr class="memdesc:a65da0ea5c7b9662ec33328571f2a3967"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="classyLib_1_1yShell.html#a65da0ea5c7b9662ec33328571f2a3967">More...</a><br /></td></tr>
<tr class="separator:a65da0ea5c7b9662ec33328571f2a3967"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb8c2b97b7a2772f21cbe5937f4e9716"><td class="memItemLeft" align="right" valign="top">__YLIB_DEPRECATED_ATTRIBUTE__ int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#adb8c2b97b7a2772f21cbe5937f4e9716">RunShellCommand</a> (std::vector&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> &gt; &amp;cmd)</td></tr>
<tr class="memdesc:adb8c2b97b7a2772f21cbe5937f4e9716"><td class="mdescLeft">&#160;</td><td class="mdescRight">run user's cmd  <a href="classyLib_1_1yShell.html#adb8c2b97b7a2772f21cbe5937f4e9716">More...</a><br /></td></tr>
<tr class="separator:adb8c2b97b7a2772f21cbe5937f4e9716"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a35adb0a8c0b12c490c9c7c7e58d370"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370">RunShellCommandEx</a> (std::vector&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> &gt; &amp;cmd_, std::vector&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> &gt; &amp;cmd_env_, std::vector&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> &gt; &amp;cmd_result_)</td></tr>
<tr class="memdesc:a0a35adb0a8c0b12c490c9c7c7e58d370"><td class="mdescLeft">&#160;</td><td class="mdescRight">run user's cmd with env and get the result of rum-cmd.  <a href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370">More...</a><br /></td></tr>
<tr class="separator:a0a35adb0a8c0b12c490c9c7c7e58d370"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a795ebc9b866c8cad6810de33d45a60d6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a795ebc9b866c8cad6810de33d45a60d6">ReconfigyShellBuffer</a> (uint64_t cmd_vec_size_, uint64_t cmd_env_vec_size_, uint64_t _result_line_buf_size_)</td></tr>
<tr class="memdesc:a795ebc9b866c8cad6810de33d45a60d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">we can reconfig cmd_, cmd_env_, cmd_result_'s capcity.  <a href="classyLib_1_1yShell.html#a795ebc9b866c8cad6810de33d45a60d6">More...</a><br /></td></tr>
<tr class="separator:a795ebc9b866c8cad6810de33d45a60d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classyLib_1_1yObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classyLib_1_1yObject')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classyLib_1_1yObject.html">yLib::yObject</a></td></tr>
<tr class="memitem:a4f7523f70c3832ac47812ca5d366adca inherit pub_methods_classyLib_1_1yObject"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yObject.html#a4f7523f70c3832ac47812ca5d366adca">yObject</a> ()</td></tr>
<tr class="memdesc:a4f7523f70c3832ac47812ca5d366adca inherit pub_methods_classyLib_1_1yObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="classyLib_1_1yObject.html#a4f7523f70c3832ac47812ca5d366adca">More...</a><br /></td></tr>
<tr class="separator:a4f7523f70c3832ac47812ca5d366adca inherit pub_methods_classyLib_1_1yObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e54fc8334031b969dbc4a4d45c489b3 inherit pub_methods_classyLib_1_1yObject"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yObject.html#a0e54fc8334031b969dbc4a4d45c489b3">yObject</a> (<a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> object_name_)</td></tr>
<tr class="memdesc:a0e54fc8334031b969dbc4a4d45c489b3 inherit pub_methods_classyLib_1_1yObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Override constructor.  <a href="classyLib_1_1yObject.html#a0e54fc8334031b969dbc4a4d45c489b3">More...</a><br /></td></tr>
<tr class="separator:a0e54fc8334031b969dbc4a4d45c489b3 inherit pub_methods_classyLib_1_1yObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94c1477907a7d2cad4ee2ad321ba571a inherit pub_methods_classyLib_1_1yObject"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yObject.html#a94c1477907a7d2cad4ee2ad321ba571a">yObject</a> (const <a class="el" href="classyLib_1_1yObject.html">yObject</a> &amp;object_)=delete</td></tr>
<tr class="memdesc:a94c1477907a7d2cad4ee2ad321ba571a inherit pub_methods_classyLib_1_1yObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor.  <a href="classyLib_1_1yObject.html#a94c1477907a7d2cad4ee2ad321ba571a">More...</a><br /></td></tr>
<tr class="separator:a94c1477907a7d2cad4ee2ad321ba571a inherit pub_methods_classyLib_1_1yObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bdd44e891dc768a9a414618756818fd inherit pub_methods_classyLib_1_1yObject"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classyLib_1_1yObject.html">yObject</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yObject.html#a5bdd44e891dc768a9a414618756818fd">operator=</a> (const <a class="el" href="classyLib_1_1yObject.html">yObject</a> &amp;object_)=delete</td></tr>
<tr class="memdesc:a5bdd44e891dc768a9a414618756818fd inherit pub_methods_classyLib_1_1yObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment constructor.  <a href="classyLib_1_1yObject.html#a5bdd44e891dc768a9a414618756818fd">More...</a><br /></td></tr>
<tr class="separator:a5bdd44e891dc768a9a414618756818fd inherit pub_methods_classyLib_1_1yObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a409ebd4dd4b5b5ca41de594eb6a6980b inherit pub_methods_classyLib_1_1yObject"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yObject.html#a409ebd4dd4b5b5ca41de594eb6a6980b">yObject</a> (const <a class="el" href="classyLib_1_1yObject.html">yObject</a> &amp;&amp;object_)=delete</td></tr>
<tr class="memdesc:a409ebd4dd4b5b5ca41de594eb6a6980b inherit pub_methods_classyLib_1_1yObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move constructor.  <a href="classyLib_1_1yObject.html#a409ebd4dd4b5b5ca41de594eb6a6980b">More...</a><br /></td></tr>
<tr class="separator:a409ebd4dd4b5b5ca41de594eb6a6980b inherit pub_methods_classyLib_1_1yObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0aebad488c9d1f92f89f3074a23a3f90 inherit pub_methods_classyLib_1_1yObject"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classyLib_1_1yObject.html">yObject</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yObject.html#a0aebad488c9d1f92f89f3074a23a3f90">operator=</a> (const <a class="el" href="classyLib_1_1yObject.html">yObject</a> &amp;&amp;object_)=delete</td></tr>
<tr class="memdesc:a0aebad488c9d1f92f89f3074a23a3f90 inherit pub_methods_classyLib_1_1yObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment constructor.  <a href="classyLib_1_1yObject.html#a0aebad488c9d1f92f89f3074a23a3f90">More...</a><br /></td></tr>
<tr class="separator:a0aebad488c9d1f92f89f3074a23a3f90 inherit pub_methods_classyLib_1_1yObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19061becef2eb18430987e9024d92a5b inherit pub_methods_classyLib_1_1yObject"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yObject.html#a19061becef2eb18430987e9024d92a5b">~yObject</a> ()</td></tr>
<tr class="memdesc:a19061becef2eb18430987e9024d92a5b inherit pub_methods_classyLib_1_1yObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="classyLib_1_1yObject.html#a19061becef2eb18430987e9024d92a5b">More...</a><br /></td></tr>
<tr class="separator:a19061becef2eb18430987e9024d92a5b inherit pub_methods_classyLib_1_1yObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a1667655bd02e01bb85a4cc14d5091b3d"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a1667655bd02e01bb85a4cc14d5091b3d">cmd_vec_size</a> = 20</td></tr>
<tr class="memdesc:a1667655bd02e01bb85a4cc14d5091b3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The cmd_ max size.  <a href="classyLib_1_1yShell.html#a1667655bd02e01bb85a4cc14d5091b3d">More...</a><br /></td></tr>
<tr class="separator:a1667655bd02e01bb85a4cc14d5091b3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ebeda8bdbe0593fb7c84f53b5158a28"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a6ebeda8bdbe0593fb7c84f53b5158a28">cmd_env_vec_size</a> = 20</td></tr>
<tr class="memdesc:a6ebeda8bdbe0593fb7c84f53b5158a28"><td class="mdescLeft">&#160;</td><td class="mdescRight">The cmd-env max size.  <a href="classyLib_1_1yShell.html#a6ebeda8bdbe0593fb7c84f53b5158a28">More...</a><br /></td></tr>
<tr class="separator:a6ebeda8bdbe0593fb7c84f53b5158a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c83bb1f0f79022fe2cd7c50505638d3"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a2c83bb1f0f79022fe2cd7c50505638d3">_result_line_buf_size</a> = 1024</td></tr>
<tr class="memdesc:a2c83bb1f0f79022fe2cd7c50505638d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The result-buffer max size.  <a href="classyLib_1_1yShell.html#a2c83bb1f0f79022fe2cd7c50505638d3">More...</a><br /></td></tr>
<tr class="separator:a2c83bb1f0f79022fe2cd7c50505638d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94296a7abb9c955b5482b8e2e0910783"><td class="memItemLeft" align="right" valign="top">char **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a94296a7abb9c955b5482b8e2e0910783">parse_cmd_array</a> = nullptr</td></tr>
<tr class="memdesc:a94296a7abb9c955b5482b8e2e0910783"><td class="mdescLeft">&#160;</td><td class="mdescRight">The pointer of cmd-buffer parsed.  <a href="classyLib_1_1yShell.html#a94296a7abb9c955b5482b8e2e0910783">More...</a><br /></td></tr>
<tr class="separator:a94296a7abb9c955b5482b8e2e0910783"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04db935511c5cf3631e45fc48a93744f"><td class="memItemLeft" align="right" valign="top">char **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#a04db935511c5cf3631e45fc48a93744f">parse_cmd_env_array</a> = nullptr</td></tr>
<tr class="memdesc:a04db935511c5cf3631e45fc48a93744f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The pointer of cmd-env-buffer parsed.  <a href="classyLib_1_1yShell.html#a04db935511c5cf3631e45fc48a93744f">More...</a><br /></td></tr>
<tr class="separator:a04db935511c5cf3631e45fc48a93744f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea63af8a21c2f04a5f8f446fd95d0793"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yShell.html#aea63af8a21c2f04a5f8f446fd95d0793">result_read_buffer</a> = nullptr</td></tr>
<tr class="memdesc:aea63af8a21c2f04a5f8f446fd95d0793"><td class="mdescLeft">&#160;</td><td class="mdescRight">The pointer of result-buffer.  <a href="classyLib_1_1yShell.html#aea63af8a21c2f04a5f8f446fd95d0793">More...</a><br /></td></tr>
<tr class="separator:aea63af8a21c2f04a5f8f446fd95d0793"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_classyLib_1_1yObject"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classyLib_1_1yObject')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classyLib_1_1yObject.html">yLib::yObject</a></td></tr>
<tr class="memitem:a2db8b0c6fba5a9137092715442866090 inherit pub_attribs_classyLib_1_1yObject"><td class="memItemLeft" align="right" valign="top"><a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yObject.html#a2db8b0c6fba5a9137092715442866090">object_name</a></td></tr>
<tr class="memdesc:a2db8b0c6fba5a9137092715442866090 inherit pub_attribs_classyLib_1_1yObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">The object-name.  <a href="classyLib_1_1yObject.html#a2db8b0c6fba5a9137092715442866090">More...</a><br /></td></tr>
<tr class="separator:a2db8b0c6fba5a9137092715442866090 inherit pub_attribs_classyLib_1_1yObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class can run our cmd in linux(it is based on popen/pclose). </p>
<dl class="section warning"><dt>Warning</dt><dd>We will support windows in the future. </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3a8f3cbfa59d627e56875e15fa0fcf96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a8f3cbfa59d627e56875e15fa0fcf96">&#9670;&nbsp;</a></span>yShell()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">yLib::yShell::yShell </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>

</div>
</div>
<a id="a65da0ea5c7b9662ec33328571f2a3967"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65da0ea5c7b9662ec33328571f2a3967">&#9670;&nbsp;</a></span>~yShell()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">yLib::yShell::~yShell </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a795ebc9b866c8cad6810de33d45a60d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a795ebc9b866c8cad6810de33d45a60d6">&#9670;&nbsp;</a></span>ReconfigyShellBuffer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void yLib::yShell::ReconfigyShellBuffer </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>cmd_vec_size_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>cmd_env_vec_size_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>_result_line_buf_size_</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>we can reconfig cmd_, cmd_env_, cmd_result_'s capcity. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370" title="run user&#39;s cmd with env and get the result of rum-cmd.">RunShellCommandEx</a> 's param. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd_vec_size_</td><td>cmd-vec max size </td></tr>
    <tr><td class="paramname">cmd_env_vec_size_</td><td>cmd-env-vec max size </td></tr>
    <tr><td class="paramname">&lt;em&gt;result_line_buf_size&lt;/em&gt;</td><td>result-line-buffer-vec max size</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section warning"><dt>Warning</dt><dd></dd></dl>

</div>
</div>
<a id="adb8c2b97b7a2772f21cbe5937f4e9716"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb8c2b97b7a2772f21cbe5937f4e9716">&#9670;&nbsp;</a></span>RunShellCommand()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int yLib::yShell::RunShellCommand </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>cmd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>run user's cmd </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd</td><td>we want to run.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status of run-cmd </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>run cmd ok. </td></tr>
    <tr><td class="paramname">-1</td><td>run cmd error.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>This op is deprecated. </dd></dl>

</div>
</div>
<a id="a0a35adb0a8c0b12c490c9c7c7e58d370"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a35adb0a8c0b12c490c9c7c7e58d370">&#9670;&nbsp;</a></span>RunShellCommandEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int8_t yLib::yShell::RunShellCommandEx </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>cmd_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>cmd_env_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>cmd_result_</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>run user's cmd with env and get the result of rum-cmd. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd_</td><td>we want to run, cmd_'s size must be less than 20. </td></tr>
    <tr><td class="paramname">cmd_env_</td><td>the env of cmd_, cmd_env_'s size must be less than 20. </td></tr>
    <tr><td class="paramname">cmd_result_</td><td>the result of cmd_, _result_line_buf_size's size must be less than 1024.(_result_line_buf_size is max line-length of cmd_result).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status of run-cmd </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>run cmd ok. </td></tr>
    <tr><td class="paramname">-1</td><td>run cmd error.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd></dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a2c83bb1f0f79022fe2cd7c50505638d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c83bb1f0f79022fe2cd7c50505638d3">&#9670;&nbsp;</a></span>_result_line_buf_size</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t yLib::yShell::_result_line_buf_size = 1024</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The result-buffer max size. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370" title="run user&#39;s cmd with env and get the result of rum-cmd.">RunShellCommandEx</a> 's param </dd></dl>

</div>
</div>
<a id="a6ebeda8bdbe0593fb7c84f53b5158a28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ebeda8bdbe0593fb7c84f53b5158a28">&#9670;&nbsp;</a></span>cmd_env_vec_size</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t yLib::yShell::cmd_env_vec_size = 20</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The cmd-env max size. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370" title="run user&#39;s cmd with env and get the result of rum-cmd.">RunShellCommandEx</a> 's param </dd></dl>

</div>
</div>
<a id="a1667655bd02e01bb85a4cc14d5091b3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1667655bd02e01bb85a4cc14d5091b3d">&#9670;&nbsp;</a></span>cmd_vec_size</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t yLib::yShell::cmd_vec_size = 20</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The cmd_ max size. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classyLib_1_1yShell.html#adb8c2b97b7a2772f21cbe5937f4e9716" title="run user&#39;s cmd">RunShellCommand</a> / <a class="el" href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370" title="run user&#39;s cmd with env and get the result of rum-cmd.">RunShellCommandEx</a> 's param </dd></dl>

</div>
</div>
<a id="a94296a7abb9c955b5482b8e2e0910783"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94296a7abb9c955b5482b8e2e0910783">&#9670;&nbsp;</a></span>parse_cmd_array</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char ** yLib::yShell::parse_cmd_array = nullptr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The pointer of cmd-buffer parsed. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classyLib_1_1yShell.html#adb8c2b97b7a2772f21cbe5937f4e9716" title="run user&#39;s cmd">RunShellCommand</a> / <a class="el" href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370" title="run user&#39;s cmd with env and get the result of rum-cmd.">RunShellCommandEx</a> 's param </dd></dl>

</div>
</div>
<a id="a04db935511c5cf3631e45fc48a93744f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04db935511c5cf3631e45fc48a93744f">&#9670;&nbsp;</a></span>parse_cmd_env_array</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char ** yLib::yShell::parse_cmd_env_array = nullptr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The pointer of cmd-env-buffer parsed. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370" title="run user&#39;s cmd with env and get the result of rum-cmd.">RunShellCommandEx</a> 's param </dd></dl>

</div>
</div>
<a id="aea63af8a21c2f04a5f8f446fd95d0793"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea63af8a21c2f04a5f8f446fd95d0793">&#9670;&nbsp;</a></span>result_read_buffer</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char * yLib::yShell::result_read_buffer = nullptr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The pointer of result-buffer. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classyLib_1_1yShell.html#a0a35adb0a8c0b12c490c9c7c7e58d370" title="run user&#39;s cmd with env and get the result of rum-cmd.">RunShellCommandEx</a> 's param </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/sky/yLib/include/utility/<a class="el" href="yshell_8hpp_source.html">yshell.hpp</a></li>
<li>/home/sky/yLib/src/utility/<a class="el" href="yshell_8cpp.html">yshell.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceyLib.html">yLib</a></li><li class="navelem"><a class="el" href="classyLib_1_1yShell.html">yShell</a></li>
    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  </ul>
</div>
</body>
</html>
